/*******************************************************************************
* Copyright (c) 2010, 2018 西安秦晔信息科技有限公司
* Licensed under the Apache License, Version 2.0 (the "License");
*    you may not use this file except in compliance with the License.
*    You may obtain a copy of the License at
*
*       http://www.apache.org/licenses/LICENSE-2.0
*
*    Unless required by applicable law or agreed to in writing, software
*    distributed under the License is distributed on an "AS IS" BASIS,
*    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*    See the License for the specific language governing permissions and
*    limitations under the License.
*******************************************************************************/
package com.qinyeit.serviceapp.entity;

import lombok.Builder;
import lombok.experimental.Tolerate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * ClassName: CommentBranch <br/>
 * Function: 原因备注生效机构 <br/>
 * date: 2018-11-27 10:01:35 <br/>
 *
 * @author liuwenjin
 * @version  1.0
 * @since JDK 1.8
 */
@Builder
@Entity
@Table(name="comment_branchs")
public class CommentBranch extends MerchantGroupBaseEntity<Long> {

	private static final long serialVersionUID = 1L;

	// 备注id 
    @Column(name="comment_id")
	private Long commentId = null;

	// 分店id 
    @Column(name="branch_id")
	private Long branchId = null;

	// 区域id 
    @Column(name="district_id")
	private Long districtId = null;

    @Transient
	private String label = "";


    @Tolerate
	public CommentBranch() {
		
	}
    @Tolerate
	public CommentBranch(Long id){
    	super.setId(id);
    }
	
	/**
	 * 获取备注id
	 */
	public Long getCommentId() {
		return this.commentId;
	}

    /**
     * 设置备注id
     */
	public CommentBranch setCommentId(Long commentId) {
		this.commentId = commentId;
		return this;
	}

	/**
	 * 获取分店id
	 */
	public Long getBranchId() {
		return this.branchId;
	}

    /**
     * 设置分店id
     */
	public CommentBranch setBranchId(Long branchId) {
		this.branchId = branchId;
		return this;
	}

	/**
	 * 获取区域id
	 */
	public Long getDistrictId() {
		return this.districtId;
	}

    /**
     * 设置区域id
     */
	public CommentBranch setDistrictId(Long districtId) {
		this.districtId = districtId;
		return this;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}
}
